package com.link_with_health.mapper;

import com.link_with_health.model.PatientEntity;
import org.apache.ibatis.annotations.Mapper;
import sun.util.resources.cldr.gv.LocaleNames_gv;

import java.util.List;

@Mapper
public interface PatientMapper {
    PatientEntity queryPatientByPatientId(Long id);
    List<PatientEntity> queryPatientByUserId(Long userId);
    List<PatientEntity> queryPatientByUserName(String username);
    List<PatientEntity> queryPatientByRealName(String name);
    List<PatientEntity> queryAllPatient();
    int insertPatient(PatientEntity patient);
    int updatePatient(PatientEntity patient);
    int deletePatient(Long patientId);
}
